{
	template:`
    <m-page @back="back" :title="title">
        <m-top></m-top>
        <m-title>{{title}}</m-title>
		<m-top></m-top>
		<m-list ref="list" :url="url" :params="params" :bottom="0" :search="search">
			<template #item="{item}">
                <m-card join @click="openMemberPage('orderInfo',{oid:item.oid})">
                    <div class="flex padding-sm align-center">
                        <div class="cu-tag radius" :class="'bg-'+item.inputStore.color">{{item.inputStore.name}}</div>
                        <div class="flex-sub padding-lr-sm">
						    <span class="padding-right-xs">{{item.orderNo}}</span>
						    <small>服务员工：</small>
                            <span class="padding-right-xs">{{item.serveUser.realName}}</span>
                            <div class="text-sm">[{{dict('member.order.model.OrderInfo!payType',item.payType)}}]实付{{formatAmount(item.payAmount)}}元</div>
                        </div>
                        <div class="text-right">
                            <status type="orderStatus" :value="item.status"></status>
                            <div class="text-sm padding-top-xs">{{formatDate(item.accountDate,'yyyy-MM-dd')}}</div>
                        </div>
                    </div>
                </m-card>
			</template>
		</m-list>
    </m-page>
	`,
	props: ['param','parentVue'],
	data:function(){
		return {
            title:'已完成的订单',
            url:'action/member/orderInfo/getMyList',
            params:{'status@eq':'Y'},
            search:[
                {title:'订单编号',name:'member.orderNo@like',input:'text'},
                {title:'付款类型',name:'payType@eq',input:'dict',dict:'member.order.model.OrderInfo!payType'},
                {title:'实付金额',name:'payAmount',input:'numberRange'},
            ]
		};
	},
	mounted(){
	    this.initDict('member.order.model.OrderInfo!payType');
	},
	methods:{
	    openMemberPage:function(page,params,fn){
            this.openPage('member/'+page+'.js',params,fn);
	    },
	}
}